package Controller;

/**
 * This program consists of nine files: Controller Package (Gridsize.java, MyLogger.java and SlidePuzzle.java) 
 * that controls the main functionality of the program and is aware of the other packages and methods inside of them,
 * Model Package (SlidePuzzleModel.java and Tile.java) that handles the logical operations of the game board and game tiles and 
 * View Package (MenuHandler.java and SlidePuzzleGUI.java - GameTimer.java and MoveCounter.java were to be incorporated into 
 * SlidePuzzleGUI.java)
 */

import View.SlidePuzzleGUI;
import javax.swing.JFrame;
import java.util.logging.Logger;

/**
 * 
 * @author Simon Marshall - jc209673
 */
public class SlidePuzzle {

    private Logger StatsLogger;

    /**
     * 
     * @param args - Controller class file for Slide Puzzle Assignment. Main that sets the window name, closes on exit, sets the content pane, finalizes layout, makes window visible and stop window from being resized.
     */
    public static void main(String[] args) { // main start

        //have the logger object, mouseclicked, actionperformed and setuplogger.

        JFrame window = new JFrame("Slide Puzzle Version 2");
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window.setContentPane(new SlidePuzzleGUI());
        window.pack();  // finalize layout
        window.setVisible(true);  // make window visible, using window.show() will do the same for a depreciated function
        window.setResizable(false);
    }

    private static class StatsLogger {

        public StatsLogger() {
            return;
        }
    }
}
